#设计一个闹钟类
class Clock:
    id = None
    price = None

    def ring(self):
        import winsound
        winsound.Beep(2000, 3000)

#构建闹钟对象
clock = Clock()

clock.id = '001'
clock.price = 1000

print(clock.id)
print(clock.price)

clock.ring()
